From b5729f851d45dc07678a8f5e0db9ee232a81938b Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Tue, 9 Dec 2025 11:19:37 +0000 Subject: [PATCH] ignore expected DeprecationWarning Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_bitwiseinversion_deprecation.patch --- pandas/tests/computation/test_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 859cbd30..e9f7016b 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -564,7 +564,7 @@ class TestEval: def test_scalar_unary(self, engine, parser): msg = "bad operand type for unary ~: 'float'" warn = None - if PY312 and not (engine == "numexpr" and parser == "pandas"): + if PY312: warn = DeprecationWarning with pytest.raises(TypeError, match=msg): pd.eval("~1.0", engine=engine, parser=parser) -- 2.30.2